package cn.xd.base.application.service.command;


import cn.xd.base.domain.bean.command.AddAdminMenuCommand;
import cn.xd.base.domain.bean.command.UpdateAdminMenuCommand;
import cn.xd.base.domain.bean.response.AdminMenuDTO;


public interface AdminMenuAppService {

    /**
     * 修改菜单
     *
     * @param command
     * @return 修改后的菜单
     */
    AdminMenuDTO updateAdminMenu(UpdateAdminMenuCommand command, Long userId);

    /**
     * 新增菜单
     *
     * @param command
     * @return
     */
    AdminMenuDTO addAdminMenu(AddAdminMenuCommand command, Long userId);

    /**
     * 删除
     *
     * @param id 菜单id
     */
    void deleteAdminMenu(Long id);
}
